<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>92Play后台管理</title>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/managercss.css" />
<style type="text/css">
<!--
body {
	margin-left: 5px;
	margin-top: 5px;
	margin-right: 5px;
	background:#EFEFEF;
}
-->
</style>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery-1.4.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.form.js"></script>
<script type="text/javascript">
	var ctp = '<%=request.getContextPath() %>';
	$(function(){
		$("#add").click(function(){
			var companyName = $("#companyName").val();
			if(companyName==''){
				alert("请输入厂商名称!");
				$("#companyName").focus();
				return;
			}else{
				var date = $("#companyForm").formSerialize();
				$.ajax({
					url:ctp+"/admin/company/add",
					data:date,
					type:"POST",
					success:function(flag){
						if(flag=='1'){
							alert("添加成功!");
							//window.location.href= ctp+"/admin/company";
							 parent.location.reload();
						}else{
							alert("添加失败!");
						}
					}
				});
				return;
			}
		});
	});
</script>
</head>
<body>
<div class="information">
	<div class="list">
		<form method="post" id="companyForm">
		<div class="noselect">
			<ul>
				<li style="width: 100px;text-align: right;">厂商名称：</li>
				<li style="width: 300px;text-align: left;">
					<input type="text" name="companyName" id="companyName" value="" size="20"></input>
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">厂商描述：</li>
				<li style="width: 300px;text-align: left;">
					<textarea rows="5" cols="30" name="companyMemo" id="companyMemo"></textarea>
				</li>
			</ul>
			<!-- 
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">地址：</li>
				<li style="width: 300px;text-align: left;">
					<input type="text" name="companyAddr" id="companyAddr" size="20">
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">电话：</li>
				<li style="width: 300px;text-align: left;">
					<input type="text" name="companyTel" id="companyTel" size="20">
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">传真：</li>
				<li style="width: 300px;text-align: left;">
					<input type="text" name="companyFax" id="companyFax" value="" size="20">
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">主页：</li>
				<li style="width: 300px;text-align: left;">
					<input type="text" name="companyHome" id="companyHome">
				</li>
			</ul>
			 -->
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">业务线：</li>
				<li style="width: 300px;text-align: left;">
					<select name="bussiness">
						<option value="SMS">SMS</option>
						<option value="MMS">MMS</option>
						<option value="IVR">IVR</option>
						<option value="视频基地">视频基地</option>
						<option value="百宝箱游戏">百宝箱游戏</option>
						<option value="G+游戏">G+游戏</option>
						<option value="动漫基地">动漫基地</option>
						<option value="阅读基地">阅读基地</option>
						<option value="MM基地">MM基地</option>
						<option value="MDO业务">MDO业务</option>
					</select>
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">分成比率：</li>
				<li style="width: 300px;text-align: left;">
				<textarea rows="5" cols="30" name="percent" id="percent"></textarea>
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">结算周期：</li>
				<li style="width: 300px;text-align: left;">
					<input type="text" name="check" id="check">
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">指令概述：</li>
				<li style="width: 300px;text-align: left;">
					<textarea rows="5" cols="30" name="commandMemo" id="commandMemo"></textarea>
				
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">状态：</li>
				<li style="width: 300px;text-align: left;">
					<select name="status">
						<option value="1">有效</option>
						<option value="0">无效</option>
					</select>
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">&nbsp;</li>
				<li style="width: 300px;text-align: left;">
					<input type="button" id="add" value="提 交" /> 
				</li>
			</ul>
			<div class="clear"></div>
		</div>
		</form>
	</div>
</div>
</body>
</html>